﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace WinBolo_Tracker
{
    public class Logger
    {
        public static void Log(string message)
        {
            try
            {
                
//                File.AppendAllText(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) +  "\\wbt_error.log", DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + ": " + Message + Environment.NewLine);
            }
            catch (Exception e)
            {
                return;
            }
        }

        public static void Log(IList<object> list, string message)
        {
            try
            {
                list.Add(message);
                //                File.AppendAllText(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) +  "\\wbt_error.log", DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + ": " + Message + Environment.NewLine);
            }
            catch (Exception e)
            {
                return;
            }
        }
    }
}
